import { request } from '@/utils/request'
import type { HomeDataVo, ExamVoiceMockVo } from './types'

/**
 * 获取首页数据
 * @param driveType
 * @param businessType
 * @returns
 */
export const getHomeDataApi = (driveType: string, businessType: string) => {
  return request<HomeDataVo>({
    url: `/api/home/${driveType}/${businessType}`,
    method: 'GET',
  })
}
/**
 * 获取考试语音模拟数据
 * @param driveType
 * @returns
 */
export const getExamVoiceMockListApi = (driveType: string) => {
  return request<ExamVoiceMockVo[]>({
    url: `/api/home/exam/voice/mock/list/${driveType}`,
    method: 'GET'
  })
}
